;var PLATFORM = PLATFORM || {};

// 日期选择 年-月-日
PLATFORM.datepickerRange = function(from, to){
    $(from).datepicker({
        dateFormat: "yy-mm-dd",
        /*onClose: function(selectedDate){
            $(to).datepicker("option", "minDate", selectedDate);
        }*/
    });
    $(to).datepicker({
        dateFormat: "yy-mm-dd",
        /*onClose: function(selectedDate){
            $(from).datepicker("option", "maxDate", selectedDate);
        }*/
    });
};
// 日期选择 年-月-日 时:分:秒
PLATFORM.timepickerRange = function(from, to){
    $(from).datetimepicker({
        showSecond: true,
        timeFormat: 'hh:mm:ss',
        onClose: function(selectedDate){
            $(to).datepicker("option", "minDate", selectedDate);
        }
    });
    $(to).datetimepicker({
        showSecond: true,
        timeFormat: 'hh:mm:ss',
        onClose: function(selectedDate){
            $(from).datepicker("option", "maxDate", selectedDate);
        }
    });
};

//$(function(){
//	PLATFORM.popupClose();
//	PLATFORM.tab();
//});
